package com.william.jdbcplus.core.enums;

import com.william.jdbcplus.core.condition.segment.ISegment;
import com.william.jdbcplus.core.toolkit.StringPool;

/**
 * wrapper 内部使用枚举
 *
 * @author niliwei
 */
public enum WrapperKeyword implements ISegment {
    /**
     * 只用作于辨识,不用于其他
     */
    APPLY(null),
    LEFT_BRACKET(StringPool.LEFT_BRACKET),
    RIGHT_BRACKET(StringPool.RIGHT_BRACKET),
    ;

    private final String keyword;

    WrapperKeyword(final String keyword) {
        this.keyword = keyword;
    }

    @Override
    public String getSegment() {
        return keyword;
    }

    @Override
    public String toString() {
        return keyword;
    }
}
